package com.weactivity.service;


import com.weactivity.dto.ApplyExpenseDTO;
import com.weactivity.dto.ApproveDTO;
import com.weactivity.dto.BudgetDTO;
import com.weactivity.entity.Budget;
import com.weactivity.entity.Expense;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;

import java.util.List;


public interface BudgetService {
    void add(BudgetDTO budgetDTO);

    double findBudget(int aid);

    double findRemain(int aid);

    void updateBudget(@Param("newBudget") double newBudget, @Param("newRemain")double newRemain, @Param("aid") int aid);

    List<Budget> showAll();

    void apply(ApplyExpenseDTO applyExpenseDTO);

    List<Expense> showApply(int state);

    void dispose1(ApproveDTO approveDTO);

    void dispose2(int uid, int aid,int approve, double remain);


    double findMoney(ApproveDTO approveDTO);
}
